package rs.udd.service.dto.user;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import rs.udd.service.dto.entity.AbstractEntityViewDto;

public abstract class AbstractUserViewDto extends AbstractEntityViewDto {

	private String username;

	private String firstname;

	private String lastname;

	private String email;

	private Date creationTime;

	private Date modificationTime;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getCreationTime() {
		return creationTime;
	}

	public void setCreationTime(Date creationTime) {
		this.creationTime = creationTime;
	}

	public Date getModificationTime() {
		return modificationTime;
	}

	public void setModificationTime(Date modificationTime) {
		this.modificationTime = modificationTime;
	}

	@Override
	public String toString() {

		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append(super.toString())
				.append("username", username)
				.append("firstname", firstname)
				.append("lastname", lastname)
				.append("email", email)
				.append("creationTime", creationTime)
				.append("modificationTime", modificationTime)
				.toString();
	}

}
